package zhaomh.catgirl.listener;

import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import zhaomh.catgirl.zTools;
import zhaomh.catgirl.zConfig;

public class JoinListener implements Listener {

    @EventHandler
    public void join(PlayerJoinEvent event) {
        zTools t = new zTools("&d[Z-ねこむすめ]",event.getPlayer());

        if (zConfig.dConfig.getBoolean("join")){
            t.getServer().broadcastMessage(t.colorReplace("&e"+t.getName()+" 加入了游戏"));
        }
    }
}
